package www.openteam.com.bean;

/**
 * Created by Administrator on 2019-09-06.
 */

public class JiJian {

    private String code;
    private String name;
    private String job;
    private String sumnub;

    public JiJian(String code, String name, String job, String sumnub) {
        this.code = code;
        this.name = name;
        this.job = job;
        this.sumnub = sumnub;
    }

    public JiJian() {
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getSumnub() {
        return sumnub;
    }

    public void setSumnub(String sumnub) {
        this.sumnub = sumnub;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        JiJian jiJian = (JiJian) o;

        if (code != null ? !code.equals(jiJian.code) : jiJian.code != null) return false;
        if (name != null ? !name.equals(jiJian.name) : jiJian.name != null) return false;
        if (job != null ? !job.equals(jiJian.job) : jiJian.job != null) return false;
        return sumnub != null ? sumnub.equals(jiJian.sumnub) : jiJian.sumnub == null;
    }

    @Override
    public int hashCode() {
        int result = code != null ? code.hashCode() : 0;
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (job != null ? job.hashCode() : 0);
        result = 31 * result + (sumnub != null ? sumnub.hashCode() : 0);
        return result;
    }
}
